//
//  XMChatSystemTableViewCell.m
//  XMenSwift
//
//  Created by Jason on 2022/9/19.
//

#import "XMChatSystemTableViewCell.h"
#import <Masonry/Masonry.h>


@interface XMChatSystemTableViewCell()
/**  */
@property (nonatomic ,strong) UILabel *messageLabel;

@end

@implementation XMChatSystemTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _messageLabel = [[UILabel alloc] init];
        _messageLabel.font = [UIFont systemFontOfSize:13];
        _messageLabel.textColor = [UIColor colorWithRed:100/255. green:100/255. blue:100/255. alpha:1];
        _messageLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_messageLabel];
        [_messageLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self.contentView);
            make.height.mas_equalTo(20);
            
        }];
    }
    return self;
}

- (void)setConfig:(WZMChatMessageModel *)model {
    _messageLabel.text = model.message;
}



@end
